package com.workManager.mapper;

import com.github.pagehelper.PageInfo;
import com.workManager.pojo.TdMenu;
import com.workManager.pojo.TdMenuExample;
import java.util.List;
import java.util.Map;

import com.workManager.vo.MenuVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface TdMenuMapper {
    int countByExample(TdMenuExample example);

    int deleteByExample(TdMenuExample example);

    int deleteByPrimaryKey(Integer menuId);

    int insert(TdMenu record);

    int insertSelective(TdMenu record);

    List<TdMenu> selectByExample(TdMenuExample example);

    TdMenu selectByPrimaryKey(Integer menuId);

    int updateByExampleSelective(@Param("record") TdMenu record, @Param("example") TdMenuExample example);

    int updateByExample(@Param("record") TdMenu record, @Param("example") TdMenuExample example);

    int updateByPrimaryKeySelective(TdMenu record);

    int updateByPrimaryKey(TdMenu record);

    List<MenuVo> queryFunctionMenu(@Param("loginCode") String loginCode);

    List<MenuVo> queryParentMenu();

    List<MenuVo> query(@Param("cm")Map<String, Object> map);
    List<MenuVo> queryLikeMeunName(@Param("cm")Map<String, Object> map);
}